package com.yyx.server.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * <p>
 * 
 * </p>
 *
 * @author YongXin
 * @since 2021-10-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_notice")
@Document(indexName = "ows_notice")
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 公告ID	
     */
      private String id;

    /**
     * 公告标题
     */
    private String title;

    /**
     * 公告内容
     */
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String content;

    /**
     * 公告类型：新闻，通知，人事，制度
     */
    private String style;

    /**
     * 公告部门
     */
    private String department;

    /**
     * 公告时间
     */
    private LocalDateTime time;


}
